Added better logging on startup, make sure we kill server if healthcheck fails, wait longer#306
Added better logging on startup, make sure we kill server if healthcheck fails, wait longer#306
Conversation
…eck fails, wait longer
WalkthroughThe changes introduce enhanced trace-level logging and process management for starting the project server, including logging before and after server startup and improved cleanup on health check failure. Additionally, the health check retry duration is increased, and logging within the health check loop is made more detailed. Changes
Sequence Diagram(s)sequenceDiagram
participant DevCommand
participant ProjectServer
participant HealthCheck
DevCommand->>DevCommand: Log "Starting project server"
DevCommand->>ProjectServer: Start process
DevCommand->>DevCommand: Log "Project server started (PID)"
DevCommand->>HealthCheck: Begin health check (retry up to 30s)
loop Health Check Attempts
HealthCheck->>ProjectServer: Send health check request
HealthCheck->>DevCommand: Log attempt count and elapsed time
alt Health check fails and timeout reached
DevCommand->>ProjectServer: Kill process
DevCommand->>DevCommand: Close UI and return
end
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Graph Analysis (1)cmd/dev.go (3)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit